@echo off
set FolderName=./proto
for /f "delims=\" %%a in ('dir /b /a-d /o-d "%FolderName%\*.proto"') do (
  echo %%a
  protoc  ./proto/%%a --java_out=./src
)
pause